package com.sniff.atp.utils;

import org.testng.Assert;

public class AssertUtil {

    private AssertUtil(){}

    public static void assertTrue(String result, String url) {
        if (url.contains("xxl-job-admin")) {
            return;
        }
        Assert.assertTrue(result.contains("\"code\":\"0\"") || result.contains("\"errcode\":0") || result.contains("\"success\":true") || result.contains("\"code\":\"200\""), result);
    }
}
